<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="common/taglibs.jsp" %>
<html>
<head>
    <title>MainMenu</title>
    <%@ include file="common/meta.jsp" %>
    <script type="text/javascript" src="${rootPath}/resources/js/jquery.min.js"></script>
</head>
<body>
<button value="Logout" onclick="closeMe()">Logout</button>
<script type="text/javascript">
    function closeMe()
    {
        $.ajax({
            url:'${rootPath}/logout',
            type:'get',
            success:function(result){
                var w=window.open("","_top");
                w.opener=window;
                w.close();
            }
        });
    }
</script>
</body>
</html>
